home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 4
/
Precision Software Applications Silver Collection Volume 4 (1993).iso
/
stats
/
mathx30.exe
/
MATHXDEM.APL
< prev
next >
Wrap
Text File
|
1991-08-07
|
12KB
|
315 lines
z''=info:z'''=int((z''-int(z''/10000)*10000)/1000):if z'''<>1}1
| MATHXDEM.APL FILE
Copyright 1991 By David W. Denker
Box 115, Isanti, Mn. 55040
For MATHX V3.00 |
dsp n" Sorry, the MATHXDEM.APL file will not work with MATHXR! "
wait10:quit
#1
Z'''=INT(Z''*.0001):IF Z'''=>300}2
DSP nn; Sorry, this file must be used with MATHX V3.00 or greater!;n
wait20:quit
#2
z'''=int(z''*.1)-int(z''*.01)*10
digl6:digr6:boff:bc7:cls:xon
title= MATH EXTRA DEMO
i=sloc:if i=82}700
HEAD B0F13" Select by the FIRST LETTER or use MOUSE or CURSOR keys."
wlcc b1f15l2
menuu bb4bf15b2f14I"
"!G"o to main program
"!R"un MATHX Demo"xr7
x=mlvl:if x=1}q
#700
if z'''<3}800
graf,GOS710,IF Y'<>1}720,Y'=30
fc4,dsp r1c32;WELCOME TO;
fc2,line x50y(30+Y')ex50ey(90+Y')w4,line ex70ey(70+Y'),line x90ex70
line ex90ey(90+Y')
FC3,line x120ex100,line ex140,line x106ex134y(70+Y')ey(70+Y')
FC4,line x150ex190y(30+Y')ey(30+Y'),line x168ex168ey(90+Y')
FC5,line x200ex200,line x240ex240,line x200ex240y(57+Y')ey(57+Y')
FC6,line x300ex300y(30+Y')ey(90+Y'),line ex340ey(30+Y')
line ex330y(57+Y')ey(57+Y'),line ex340y(87+Y')ey(87+Y')
FC9,line x350ex390y(30+Y')ey(90+Y'),line x390ex350
FC10,line x400ex440y(30+Y')ey(30+Y'),line x418ex418ey(90+Y')
FC11,line x450ex450,line ex475ey(30+Y'),line y(58+Y')ey(58+Y')
line x470ex490ey(90+Y')
arc x475y(44+Y')r14w4vs0e90f100,ARC H,arc s270e360,ARC V
FC12,line x520ex500y(30+Y')ey(90+Y')
line ex540,line x506ex534y(70+Y')ey(70+Y')
fc13,line x40ex550y(100+Y')ey(100+Y')w2
FC14,row21,col5,dsp ;By ;f12;DENKER SOFTWARE;
FC14,row22,col5,dsp ;Copyright 1991, David Denker;
wait4,go720
#710
Y''=VIDM:Y'=0:IF Y''>19}R
Y'=data Y''{0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,1,1,1,0}:RET
#720
GOFF
#800:CLS:hoff
CC0:BC7:dsp f0" COPYRIGHT 1991, by David Denker, Box 115, Isanti, Mn. 55040
WELCOME TO THE "F4"MATH EXTRA"f0" DEMO PROGRAM.
The MATH EXTRA programs are general purpose scientific math software
programs for the IBM PC/XT/AT and 100% compatible computers. There are
two different programs available depending on your requirements. Both
are programmable using a simple easy to learn language and both are very
powerful math programs. This demo file is a file written on an ordinary
word processor for use by this math program as an instruction tool. More
on that later. Lets look at what this program can do.
"f1"Hit any key when ready."f0
call810:cls
dsp d27d24"─────────────────────────────────78 columns────────────────────"
dsp"────────────"d26" │"n" │"n" │"n"7 rows"n" │"ns1d25
windd r9c4bb1bf15b14f0wr9wc68;
Instructions, commands or problems are given to the math program
using the instruction line. The instruction line has 7 rows
of 78 columns that form a 546 character instruction area.
(The MATH EXTRA RESIDENT version has 4 rows of 78 columns.)
This is where a math problem is entered or commands are given.
;f4; Hit any key to continue.
;f0:call810:cls
dsp "100+200
300"
windd r9wr9wc66;
To get the answer to a math problem, simply enter the problem
using normal computer math symbals and numbers and hit the
ENTER key for the answer. It is as simple as that! No on
screen "calculator" to figure out, just direct problem input
and a fast answer back.
;f4; Hit any key to continue.
;f0
call810:cls
head " Hit the ESC key if you want to quit."
dsp "12*144+10"n" 1,738"n
dsp "156 * SIN 30"n" 78"n
dsp"√(14.4*10)"n" 12"n
dsp "25-32*3"n" -71"n
dsp "pi*6.1234"n" 19.2372285"n
dsp "45 - 144 / 6 + 15.25"n" 36.25"
windd f0wr7wc58r2c18;
Here are some examples of problems entered and
the answers returned. The instruction line moves down
the screen as each problem is done.
;f4; Hit any key to continue.
;f0
call810
windd wc40c35f0wr16"
Notice on the last example displayed
that the answer does not agree with
your calculator if you enter it the
way it is written. The MATH EXTRA
programs use a priority system that
is common for math computers. The
math operations multiplication and
division have priority over addition
and subtraction so they are done
first. See the help information
window or the manual for more on the
priority of calculations.
"f4" Hit any key to continue"
call810:woff
dsp n"45 - 144 / 6 + 15.25"
windd wc40f0wr8c30"
If you make a mistake on the problem
you last entered, just hit the F10
key and the previous entry will be
brought back for your editing. When
done editing hit ENTER for the new
answer.
"f4" Hit any key to continue"
wait10:dsp" * 2"n:wait3:woff
dsp" 51.5":windd wr10:call810
cls
dsp r0c0"DIGR 2:X=10:I=.10:S=10000:#1:S=S+S*I:X=X-1:IF X<>0}1:DSP(S)"
windd f0"
As you have just seen, the MATH EXTRA programs are easy to use.
The examples given were simple math problems, but the MATH EXTRA
programs can do some harder problems too. Take a look at the above
problem for instance. This problem will show you how much money you
will have after X years starting with S amount at I interest rate.
"f4" Hit any key to continue
"wr9wc73r10c1
call 810
dsp n" 25,937.42"
WINDD f0wc76;
The first statement on the line is DIGR 2. This sets up a display
parameter so only 2 digits right of the decimal point will be displayed.
The next 3 instructions give values to variables X, I and S. "X" is the
number of years, "I" is the interest rate (10%) and "S" is the starting
amount of dollars. The #1 is a jump location. This is where the loop
starts for the 10 year cycle. The : characters in the problem are
statement and math expression separators so the program knows where
each statement and math expression starts and ends. Then comes the
math statements required to do the problem. After that is a IF
statement to check if X does not equal 0 (if it doesn't it jumps back
to location #1). Then at the end is the display of the final result.
;f4" Hit any key to continue
"wr15r5c1:call 810
windd f0c2;
Very complex problems can be solved by the MATHX EXTRA programs
using this easy and logical method that is very similar to "BASIC"
except its in a math environment.
The above problem could have been set up to include a yearly,
monthly, or weekly contribution and display the results each month.
MATH EXTRA comes with an application program that does this kind
of problem much better then this. All you have to do is answer some
questions and it gives you the answers!
;f4" Hit any key to continue
"wr12r7wc72:call 810:cls
x=11:y=0
head B(x)F(y)" "!C"OMMANDS "!P"ARAMETERS "!I"NFORMATION
"!L"OAD∙APL "!U"TILITIES "
DSP r10;
Now lets look at the environment header line and the pop-down menus
available to the MATH EXTRA user. Any of the pop-down menus listed on
the header line will be displayed by placing the mouse cursor on the
word of the desired menu and clicking the left mouse button. Another
way is to hold down the ALT key and hit the pick letter of the pop-down
menu you want.
;f4" Hit any key to continue
":call 810:cls
x=11:y=0
head B(x)F(y)" "B2F15" COMMANDS "B(x)F(y)" PARAMETERS INFORMATION
LOAD∙APL UTILITIES "
DSP r11;
After selecting one of the menus, in this case I will use the
"COMMANDS" menu, the pop-down menu will be displayed. Now you can use
the mouse to select any line of the menu. The cursor up/down keys
can also be used to select a menu item (hit Enter when you are on the
line you want) or for some of the menus, a pick letter is available on
each line. If a pick letter is present, just hit the letter of the line
you want. (The ALT key is not used here)
;f4" Hit any key to continue."
windd wr11wc20r1c1BB2BF15B2F0"┘ └
"!C"lear the Screen
C"!l"ear Inst. Line
"!R"un Application
Go To "!D"OS Shell
"!S"ave Inst. Line
"!G"et saved Line
"!E"dit Application
──────────────────
"!Q"UIT MATHX . . .
"
call810:cls
HEAD B(x)F(y)" COMMANDS "B2F15" PARAMETERS "B(x)F(y)" INFORMATION
LOAD∙APL UTILITIES "
DSP R15;
The next menu is the "PARAMETERS" menu. The parameters menu displays
the current parameter settings and can be used to change the parameters.
(If you have a color monitor, two more items will be available on this
menu.) The meaning of most of these are obvious. When you have the
settings you want, select the DONE line to save them to the disk file.
;f4" Hit any key to continue."
windd wr15wc31r1c11f0;┘ └
;!P;rinter Disabled
DEGREE Angular ;!M;ode
Display Negative ;!H;EX
;!A;nswer using COMMAs
ROUND ;!O;FF Answer
Scientific ;!N;otation uses E
;!S;CIENTIFIC NOTATION Enabled
DIGITS ;!L;EFT of "." = 9
DIGITS ;!R;IGHT of "." = 6
;!E;REQ statement = 7
;!Q;uiet Mode Disabled
INSERT L;!i;ne Edit Mode
;!D;ONE (save?);
call810:cls
HEAD B(x)F(y)" COMMANDS PARAMETERS "B2F15" INFORMATION "B(x)F(y)"
LOAD∙APL UTILITIES "
dsp r9;
The next menu is the "INFORMATION" menu. You can get help information,
get the function key definitions, or list the string memories or
variables. You should look at the HELP information from this menu to
get a better understanding of this math program and what it can do for you.
;f4" Hit any key to continue."
WINDD WR7WC22R1C23f0"┘ └
"!H"ELP . . .
List "!F"UNCTION Keys
List "!M"EMORIES
List "!V"ARIABLES
"!A"bout Math Extra"
call810:cls
HEAD B(x)F(y)" COMMANDS PARAMETERS INFORMATION "B2F15"
LOAD∙APL "B(x)F(y)" UTILITIES "
DSP R8;
The LOAD∙APL menu lists all the application files available.
Selecting a file from this menu will load that file into MATHX
and it can be run at any time by using the RUN APPLICATION
selection in the COMMANDS pop-down menu. The name of the
file loaded will be displayed at the right side of the top
information bar.
;f4" Hit any key to continue."
WINDD WR5WC16R1C36f0"┘ └
FINANCE.APL
MATHXDEM.APL
ONEARM.APL "
call810:cls
dsp r8;
The utilities menu lists the utility files available. MATH EXTRA
comes with a conversion utility that has over 500 metric and english
weights, volume, area and measurement conversions. Any number of
utilities can be added to the program. You can program your own
utilities using a simple word file editor. Unlike the application menu,
the utility is run immediately after it is selected from this menu.
;f4" Hit any key to continue."
windd wr5wc16R1C46"┘ └
CONVERT.UTL
GRAPH.UTL
TRIANGLE.UTL "
HEAD B(x)F(y)" COMMANDS PARAMETERS INFORMATION LOAD∙APL
"B2F15" UTILITIES "B(x)F(y)""
call810:cls
HEAD B(x)F(y)" COMMANDS PARAMETERS INFORMATION LOAD∙APL
UTILITIES "B2F15" MENU∙APL "B(x)f(y)" "
dsp r10;
MATH EXTRA comes with a savings and finance application file that
loads an application menu into the environment. This menu can be used
to pick a specific function of the application file. This file too can
be changed by the user using a simple word file editor. Any application
can have a menu available in the environment. Whenever an application
is loaded, MATH EXTRA looks for a file of the same name with the
extension .ENV. If one is found it is loaded onto the environment and
the pop-down MENU∙APL is available to the user. Now a specific routine
of the application can be run just by selecting it from this menu.
;f1; This concludes the MATH EXTRA PROGRAM DEMO.
;f14" Hit any key for the main program. "f4"Thank-you. "
WINDD BB2BF15B2F0;───────────────┘ └
;!A;mortization table
;!B;alance of loan payoff
;!C;ompound interest
;!E;arnings rate
;!I;nformation . . .
;!L;oan interest rate
;!P;ayments for loan
;!S;avings table;xc53r1
call810:quit
#810:i=kyin:if i=27}q:ret